package com.web.jdbcyw1.controller;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.web.jdbcyw1.module.User;
import com.web.jdbcyw1.service.UserService3;

@Controller
@RequestMapping("/user3")
public class UserController3 {
	@Resource
	private UserService3 UserServiceImpl;
	@RequestMapping("/getUserList3.br")
	@ResponseBody
	//http://localhost:9081/springMvc/user2/getUserList2.br
	public List<Map> queryUser() {
		System.out.println(123);
		User u = new User();
		Map map = new HashMap();
		map.put("id","5");
		return UserServiceImpl.queryUser(map);
	}
	
}
